import requestService from "../service/request";

const Api = {
  list: "/app/mango/open/cinema/list",
  listByMovie: "/app/mango/open/cinema/listByMovie",
  detail: "/app/mango/open/cinema/detail",
  arrangement: "/app/mango/open/cinema/arrangement",
  seat: "/app/mango/open/cinema/seat",
};

//获取影院列表
export function list(data) {
  return requestService(Api.list, {
    type: "get",
    data,
  });
}

//影片近期有排期的影院
export function listByMovie(data) {
  return requestService(Api.listByMovie, {
    type: "get",
    data,
  });
}

//影院排期的电影数据
export function detail(data) {
  return requestService(Api.detail, {
    type: "get",
    data,
  });
}

//影院的电影场次数据
export function arrangement(data) {
  return requestService(Api.arrangement, {
    type: "get",
    data,
  });
}

//影院的电影场次座位数据
export function seat(data) {
  return requestService(Api.seat, {
    type: "get",
    data,
  });
}
